﻿using System;
using CodeToCaml.SpTypes;

namespace CodeToCaml.Cons.Models
{
    public class Employee : SpAbstract
    {
        [SpData(Name = "Employee ID")]
        public int EmployeeId { get; set; }

        [SpData(Name = "First Name")]
        public string FirstName { get; set; }

        [SpData(Name = "Last Name")]
        public string LastName { get; set; }

        public string Department { get; set; }

        [SpData(Name = "Birth Date")]
        public DateTime DateOfBirth { get; set; }

        [SpData(ValueType = "Choice")]
        public string Sex { get; set; }

        [SpData(Name = "Year Hired")]
        public int YearHired { get; set; }

        public decimal Salary { get; set; }

        [SpData(ValueType = "Lookup")]
        public string Specialization { get; set; }

        [SpData(Name = "Last Evaluation Date")]
        public DateTime? LastEvaluationDate { get; set; }

        public bool Active { get; set; }
    }
}
